package service.Supper.impl;

import dao.Supper.SuperBigDao;
import dao.Supper.impl.SuperBigDaoImpl;
import pojo.BigClass;
import service.Supper.SuperBigService;

import java.util.List;

/**
 * 大分类
 */
public class SuperBigServiceImpl implements SuperBigService {
    private SuperBigDao superBigDao;
    public SuperBigServiceImpl(){
        superBigDao = new SuperBigDaoImpl();
    }
    @Override
    public List<BigClass> selSbig(int currentPage, int pageSize) {
        return superBigDao.selSbig(currentPage,pageSize);
    }

    @Override
    public List<BigClass> selSbig() {
        return superBigDao.selSbig();
    }

    @Override
    public int getTotalCount() {
        return superBigDao.getTotalCount();
    }

    @Override
    public List<BigClass> selSbjgById(Long id) {
        return superBigDao.selSbjgById(id);
    }

    /**
     * 删除
     * @param id
     * @return
     */
    public int delSbig(Long id) {
        return superBigDao.delSbig(id);
    }

    //添加
    public int addSbig(BigClass bigClass) {
        return superBigDao.addSbig(bigClass);
    }

    //修改
    public int updSbig(BigClass bigClass) {
        return superBigDao.updSbig(bigClass);
    }

   //验证大分类名称
    public int checkBigName(String bigName) {
        return superBigDao.checkBigName(bigName);
    }
}
